package com.itheima.stock.service.impl;

import com.itheima.stock.entity.StockBusiness;
import com.itheima.stock.mapper.StockBusinessMapper;
import com.itheima.stock.response.ResponseResult;
import com.itheima.stock.service.StockService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * ClassName: StockServiceImpl
 * Package: com.itheima.stock.service.impl
 * Description: 股票业务实现类
 *
 * @Author Lee
 * @Create 2024/10/30
 */
@Service
public class StockServiceImpl implements StockService {

    private final StockBusinessMapper stockBusinessMapper;

    public StockServiceImpl(StockBusinessMapper stockBusinessMapper) {
        this.stockBusinessMapper = stockBusinessMapper;
    }

    @Override
    public List<StockBusiness> getStockBusiness() {
        return stockBusinessMapper.selectAll();
    }
}
